package com.lmx.persistence.flow.state.employee.leave;

import com.lmx.persistence.flow.enums.EmployeeLeaveEnum;
import com.lmx.persistence.flow.state.BaseState;

/**
 * 员工请假状态基类
 *
 * @author ytche
 * @date 2017年7月13日
 *
 */
public abstract class BaseEmployeeLeaveState extends BaseState {
	public BaseEmployeeLeaveState getState(EmployeeLeaveEnum flowStatus) {
		switch (flowStatus) {
		case APPLY:
			return new ApplyState();
		case PASS_YES:
			return new PassYesState();
		case PASS_NO:
			return new PassNoState();
		case END:
			return new EndState();
		}
		return null;
	}
}
